import { reqGameInfo } from '@/api'
const state = {
    bannerList: [],
};
const mutations = {
    GETBANNERLIST(state, bannerList) {
        state.bannerList = bannerList
    },
};
const actions = {
    // 获取轮播图信息
    async getBannerList({ commit }) {
        let result = await reqGameInfo();
        if (result.code == 200)
            commit('GETBANNERLIST', result.data)
    },
};
const getters = {};

export default {
    state,
    mutations,
    actions,
    getters
}